package org.moflon.boardgamegui.view.menubar.actions;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.window.ApplicationWindow;

public class ExitAction extends Action
{
	ApplicationWindow window;

	public ExitAction(ApplicationWindow w)
	{
		window = w;
		setText("E&xit@Ctrl+W");
		setToolTipText("Exit the application");
	}

	public void run()
	{
		window.close();
	}
}